class Order {
  String buyerId;
  String buyerImg;
  String buyerName;
  String createAt;
  String goodsId;
  String goodsImg;
  String goodsName;
  String goodsType;
  int goodsNum;
  String orderId;
  double price;
  String sellerId;
  String sellerImg;
  String sellerName;
  int status;
  String updateAt;
  String epName;
  String orderInfo;
  String dataLink;
  String payCode;
  String tradeGrade;
  int tradeLevel;

  Order(
      {this.buyerId,
        this.buyerImg,
        this.buyerName,
        this.createAt,
        this.goodsId,
        this.goodsImg,
        this.goodsName,
        this.goodsType,
        this.goodsNum,
        this.orderId,
        this.price,
        this.sellerId,
        this.sellerImg,
        this.sellerName,
        this.status,
        this.updateAt,
        this.epName,
        this.orderInfo,
        this.dataLink,
        this.payCode,
        this.tradeGrade,
        this.tradeLevel,
      });

  Order.fromJson(Map<String, dynamic> json) {
    buyerId = json['buyerId'];
    buyerImg = json['buyerImg'];
    buyerName = json['buyerName'];
    createAt = json['createAt'];
    goodsId = json['goodsId'];
    goodsImg = json['goodsImg'];
    goodsName = json['goodsName'];
    goodsType = json['goodsType'];
    goodsNum = json['goodsNum'];
    orderId = json['orderId'];
    price = json['price'];
    sellerId = json['sellerId'];
    sellerImg = json['sellerImg'];
    sellerName = json['sellerName'];
    status = json['status'];
    updateAt = json['updateAt'];
    epName = json['epName'];
    orderInfo = json['orderInfo'];
    dataLink = json['dataLink'];
    payCode = json['payCode'];
    tradeGrade = json['tradeGrade'];
    tradeLevel = json['tradeLevel'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['buyerId'] = this.buyerId;
    data['buyerImg'] = this.buyerImg;
    data['buyerName'] = this.buyerName;
    data['createAt'] = this.createAt;
    data['goodsId'] = this.goodsId;
    data['goodsImg'] = this.goodsImg;
    data['goodsName'] = this.goodsName;
    data['goodsType'] = this.goodsType;
    data['goodsNum'] = this.goodsNum;
    data['orderId'] = this.orderId;
    data['price'] = this.price;
    data['sellerId'] = this.sellerId;
    data['sellerImg'] = this.sellerImg;
    data['sellerName'] = this.sellerName;
    data['status'] = this.status;
    data['updateAt'] = this.updateAt;
    data['epName'] = this.epName;
    data['orderInfo'] = this.orderInfo;
    data['dataLink'] = this.dataLink;
    data['payCode'] = this.payCode;
    data['tradeGrade'] = this.tradeGrade;
    data['tradeLevel'] = this.tradeLevel;
    return data;
  }
}